﻿using System;
using System.Security.Cryptography;

namespace DAL
{
    public class GetMD5
    {
        public static String getStr(String str)
        {
            MD5 mD5 = MD5.Create();
            byte[] bytes = System.Text.Encoding.UTF8.GetBytes(str);
            byte[] newBytes = mD5.ComputeHash(bytes);
            return BitConverter.ToString(newBytes).Replace("-", "");
        }


    }
}
